<!DOCTYPE html>
<html lang="en">
  <head>
    <title>setStackViewItems(_:forStack:animated:) Instance Method Reference</title>
    <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../../js/jquery.min.js" defer></script>
    <script src="../../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Method/setStackViewItems(_:forStack:animated:)" class="dashAnchor"></a>
    <a title="setStackViewItems(_:forStack:animated:) Instance Method Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../../index.html">InputBarAccessoryView Docs</a> (55% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../../index.html">InputBarAccessoryView Reference</a>
        <img id="carat" src="../../img/carat.png" />
        setStackViewItems(_:forStack:animated:) Instance Method Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Classes/AttachmentCell.html">AttachmentCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/AttachmentManager.html">AttachmentManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/AttachmentsView.html">AttachmentsView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/AutocompleteCell.html">AutocompleteCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/AutocompleteManager.html">AutocompleteManager</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/AutocompleteTableView.html">AutocompleteTableView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/ImageAttachmentCell.html">ImageAttachmentCell</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputBarAccessoryView.html">InputBarAccessoryView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputBarButtonItem.html">InputBarButtonItem</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputBarButtonItem/Spacing.html">– Spacing</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputStackView.html">InputStackView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputStackView/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/InputTextView.html">InputTextView</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/NSLayoutConstraintSet.html">NSLayoutConstraintSet</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SeparatorLine.html">SeparatorLine</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Extensions/NSMutableAttributedString.html">NSMutableAttributedString</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Extensions/UIView.html">UIView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Protocols/AttachmentManagerDataSource.html">AttachmentManagerDataSource</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/AttachmentManagerDelegate.html">AttachmentManagerDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/AutocompleteManagerDataSource.html">AutocompleteManagerDataSource</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/AutocompleteManagerDelegate.html">AutocompleteManagerDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/InputBarAccessoryViewDelegate.html">InputBarAccessoryViewDelegate</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/InputItem.html">InputItem</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Protocols/InputManager.html">InputManager</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>setStackViewItems(_:forStack:animated:)</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="n">open</span> <span class="kd">func</span> <span class="nf">setStackViewItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">items</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/InputItem.html">InputItem</a></span><span class="p">],</span> <span class="n">forStack</span> <span class="nv">position</span><span class="p">:</span> <span class="kt"><a href="../../Classes/InputStackView.html">InputStackView</a></span><span class="o">.</span><span class="kt">Position</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>

                </div>
              </div>
            <p>Removes all of the arranged subviews from the InputStackView and adds the given items.
Sets the inputBarAccessoryView property of the InputBarButtonItem</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:21InputBarAccessoryViewAAC08setStackD5ItemsySayAA0A4Item_pG_AA0afD0C8PositionO03forF0Sb8animatedtF0e3NewG0L_yyF"></a>
                    <a name="//apple_ref/swift/Function/setNewItems()" class="dashAnchor"></a>
                    <a class="token" href="#/s:21InputBarAccessoryViewAAC08setStackD5ItemsySayAA0A4Item_pG_AA0afD0C8PositionO03forF0Sb8animatedtF0e3NewG0L_yyF">setNewItems()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="n">open</span> <span class="kd">func</span> <span class="nf">setStackViewItems</span><span class="p">(</span><span class="n">_</span> <span class="nv">items</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../../Protocols/InputItem.html">InputItem</a></span><span class="p">],</span> <span class="n">forStack</span> <span class="nv">position</span><span class="p">:</span> <span class="kt"><a href="../../Classes/InputStackView.html">InputStackView</a></span><span class="o">.</span><span class="kt">Position</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2017 <a class="link" href="https://github.com/nathantannar4/InputBarAccessoryView" target="_blank" rel="external">Nathan Tannar</a>. All rights reserved. (Last updated: 2017-10-20)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
